Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    radios: Array
  },
  data: {},
  methods: {
    radioChange(e) {
      const current = {};
      const { value } = e.detail;
      const { radios } = this.data;
      ({ value: current['value'], name: current['name'] } = radios.find(item => item.value === value));
      this.triggerEvent('onchange',current)
    }
  }
})